<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <!-- <meta name="viewport" content="width=device-width,initial-scale=0.8,user-scalable=yes"> -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta http-equiv="content-type" content="text/html;charset=utf-8">

  <title></title>
  <script type="text/javascript" src="/user/get_login.js"></script>
  <script type="text/javascript" src="/statics/resource/java_type_enum.js"></script>
  <script type="text/javascript" src="/statics/wangeditor.js"></script>
  <script type="text/javascript" src="https://printjs-4de6.kxcdn.com/print.min.js"></script>
  <link rel="stylesheet" type="text/css" href="https://printjs-4de6.kxcdn.com/print.min.css">
  <script lang="script">

    // ----------- 当前用户信息初始化 ------------

    if (__LONG_USER__.companyType == 'CUSTOMER') {
      window.location = 'login.htm'
    }
    //当前用户是否为'平台管理员'
    __LONG_USER__.isSuperAdmin = function () {
      return __LONG_USER__.roleScope == 'DEFAULT' && __LONG_USER__.userRoleType == 'ADMIN';
    }
    //当前用户是否为'货代'
    __LONG_USER__.isAgent = function () {
      return __LONG_USER__.companyType == 'AGENT' && __LONG_USER__.roleScope == 'COMPANY';
    }
    //当前用户货代用户在当前系统是否为'贷代普通用户'
    __LONG_USER__.isAgentOperator = function () {
      return __LONG_USER__.companyType == 'AGENT' && __LONG_USER__.roleScope == 'COMPANY' && __LONG_USER__.userRoleType == 'OPERATOR';
    }
    // 当前用户货代用户在当前系统是否为'管理员'
    __LONG_USER__.isAgentAdmin = function () {
      return __LONG_USER__.companyType == 'AGENT' && __LONG_USER__.roleScope == 'COMPANY' && __LONG_USER__.userRoleType == 'ADMIN';
    }
    // 当前用户是否为客户
    __LONG_USER__.isCustomer = function () {
      return __LONG_USER__.companyType == 'CUSTOMER';
    }
    //临时方案使用
    __LONG_USER__.ifElse英威特 = !!__LONG_USER__.currentAgentName && __LONG_USER__.currentAgentName.includes('英威特')
    __LONG_USER__.ifElse澳越 = !!__LONG_USER__.currentAgentName && __LONG_USER__.currentAgentName.includes('澳越')
    __LONG_USER__.ifElse新邮 = !!__LONG_USER__.currentAgentName && __LONG_USER__.currentAgentName.includes('新邮')

    __LONG_USER__.isCustomerSystem = __LONG_USER__.roleSystem == 'CUSTOMER'
    __LONG_USER__.isOmsSystem = __LONG_USER__.roleSystem == 'OMS'
    __LONG_USER__.isWmsSystem = __LONG_USER__.roleSystem == 'WMS'
    __LONG_USER__.isTmsSystem = __LONG_USER__.roleSystem == 'TMS'
    __LONG_USER__.isMainSystem = __LONG_USER__.isCustomerSystem || __LONG_USER__.isOmsSystem
    __LONG_USER__.userCode = __LONG_USER__.loginId
    if (__LONG_USER__.isWmsSystem) {
      if (!__LONG_USER__.warehouses) __LONG_USER__.warehouses = []
      __LONG_USER__.currentWarehouse = (__LONG_USER__.warehouses).find(it => it.id == __LONG_USER__.currentWarehouseId)
    }

  </script>


</head>

<body style="margin: 0px 0px 0px 0px; padding:0px 0px 0px 0px; overflow: hidden;">
  <div id="app"></div>
</body>

</html>
